package p2000;

import java.util.Scanner;

public class Main2029回文串 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int t = Integer.parseInt(scanner.nextLine());
        while (t-- > 0) {
            String str = scanner.nextLine();
            char[] arr = str.toCharArray();
            int length = arr.length;
            int mid = length / 2;
            boolean flag = true;
            for (int i = 0; i < mid; i++) {
                if (arr[i] != arr[length - 1 - i]) {
                    flag = false;
                    break;
                }
            }

            if (flag) {
                System.out.println("yes");
            } else {
                System.out.println("no");
            }
        }
    }

}
